package balas;

import java.awt.Point;

import javax.swing.ImageIcon;

import logica.SkyNet;

/**
 * 
 * @author Martin Castro
 *
 */
public class BalaEnSubida extends Bala {
		
		private int nivel=1;
	
	public BalaEnSubida(SkyNet ia) {
		this.setIcon(new ImageIcon(getClass().getClassLoader().getResource("images/tiroArribaNivel1.png")));
		this.setSize(11,31);
		this.velocidad = -10;
		this.potencia = 50;
		this.vida = 1;
		this.movimiento = new Point(0,velocidad);
		this.lord = ia;		
		this.esEnemigo=false;
		this.esEnemigoFinal=false;
		this.puntaje=0;
		this.esTiro=true;
		this.esPowerUp=false;

	}
	
	public void mejorarArma(){
		if(nivel==1){
			this.setIcon(new ImageIcon(getClass().getClassLoader().getResource("images/tiroArribaNivel2.png")));
			this.setSize(24,25);
			this.velocidad-= 5;
			this.potencia+= 10;
		}
		if(nivel==2){
			this.setIcon(new ImageIcon(getClass().getClassLoader().getResource("images/tiroArribaNivel3.png")));
			this.setSize(31,22);
			this.velocidad-= 10;
			this.potencia+= 15;
		}
		nivel++;
	}
	
	public int getNivelArma(){
		return nivel;
	}

}